#ifndef _XDUCK_H
#define _XDUCK_H

#include <iostream>
#include "iflyable.h"

class XDuck 
{
public:
	XDuck();

	//each duck has its own display
	virtual void display() = 0; 

	//duck's fly via this method
	void performFly();

	//set flyable instance, sub-duck has to specifies the instance
	//[????] it should be hide
	void setFly(IFlyable fly);

private:
	IFlyable  m_flyable;
};

#endif
